package org.miku.module.user;

import org.miku.db.SQLHelper;
import org.miku.tools.Tools;

public class LoginManager extends BaseUserManager {
	
	public LoginManager(SQLHelper sqlHelper) {
		super(sqlHelper);
	}
	
	public boolean login(String username, String password) {
		boolean bRet = false;
		if(!Tools.isEmpty(username) && !Tools.isEmpty(password)) {
			bRet = userMgr.hasUser(username, password);
		}
 		return bRet;
	}

}